import com.zto.sch.anno.SchMapperScan;
import com.zto.sch.dao.UserDao;
import com.zto.sch.dao.UserDaoImpl;
import com.zto.sch.dao.UserDaoImpl1;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @program: javatest
 * @description:
 * @author: sch
 * @create: 2020-09-08 20:30
 **/
@Configuration
@ComponentScan("com.zto.sch")
//@MapperScan(value = "com.zto.sch.dao")
@SchMapperScan
//@EnableSchImposrtTest
@EnableAspectJAutoProxy
public class AppConfig {

//    @Bean
    public UserDao testConfig1(){
        return new UserDaoImpl1();
    }

//    @Bean
    public UserDao testConfig2(){
        this.testConfig1();
        return new UserDaoImpl();
    }
}
